/**
 * Created by dylan_Apple on 16/12/5.
 */
/**
 * Created by Amaris on 2016/10/9.
 */

var Waterline = require('waterline');
var uuid = require('node-uuid');
var moment = require('moment');

 /**
 * 路演推荐范围表
 * @type {void|*}
  * 目前路演推荐有  行业调研    公司调研
 */
module.exports = Waterline.Collection.extend({
    identity: 'dic_surveyingtype',
    tableName: 'tb_dic_surveyingtype',
    connection: "mysql",
    attributes: {

        rowId: {
            type: 'string',
            unique: true,
            primaryKey: true,
            required: true,
            uuidv4: true,
            columnName: 'rowid',
            defaultsTo: function() {
                return uuid.v4();
            }
        },
        typeName: {
            type: 'string',
            required: true,
            columnName: 'typename'
        }
    },
    autoCreatedAt: false,
    autoUpdatedAt: false
});